package br.com.beautycenter.Funcionalidades.Biometria;

import java.util.EnumMap;

import com.digitalpersona.onetouch.DPFPFingerIndex;

class Utilities {

    private static final EnumMap<DPFPFingerIndex, String> fingerNames;
    static {
    	fingerNames = new EnumMap<DPFPFingerIndex, String>(DPFPFingerIndex.class);
    	fingerNames.put(DPFPFingerIndex.LEFT_PINKY,     "mindinho esquerdo");
    	fingerNames.put(DPFPFingerIndex.LEFT_RING,      "anular esquerdo");
    	fingerNames.put(DPFPFingerIndex.LEFT_MIDDLE,    "médio esquerdo");
    	fingerNames.put(DPFPFingerIndex.LEFT_INDEX,     "indicador esquerdo");
    	fingerNames.put(DPFPFingerIndex.LEFT_THUMB,     "polegar esquerdo");
    	
    	fingerNames.put(DPFPFingerIndex.RIGHT_PINKY,    "mindinho direito");
    	fingerNames.put(DPFPFingerIndex.RIGHT_RING,     "anular direito");
    	fingerNames.put(DPFPFingerIndex.RIGHT_MIDDLE,   "médio direito");
    	fingerNames.put(DPFPFingerIndex.RIGHT_INDEX,    "indicador direito");
    	fingerNames.put(DPFPFingerIndex.RIGHT_THUMB,    "polegar direito");
    }

    public static String fingerName(DPFPFingerIndex finger) {
    	return fingerNames.get(finger); 
    }
    public static String fingerprintName(DPFPFingerIndex finger) {
    	return "Dedo " + fingerNames.get(finger); 
    }
    
}
